{extend name="public::base" /}

{block name="content"}
<div class="col-md-8">
    <div class="page-header">
        <h2>{$cateName}</h2>
    </div>
    {volist name="data" id="item" empty="$empty"}
    <div>
        <img src="/uploads/{$item.title_img}" class="img-rounded" style="margin-right: 40px;float: left;width: 100px;height: 100px;">
        <div style="float: left;width: 80%;">
            <h4><a href="{:url('index/details',['id'=>$item.id])}">{$item.title}</a></h4>
            <p>
                发布者：{$item.user_id|getUserName}&nbsp;&nbsp;&nbsp;&nbsp;
                发布时间:{$item.create_time|date='Y-m-d H:i:s'}&nbsp;&nbsp;&nbsp;&nbsp;
                阅读量:{$item.pv}
            </p>
            <div><a href="javascript:;">{$item.content|getArtContent}</a></div>
            <hr>
        </div>
    </div>
    {/volist}
    <div class="text-content">{$data|raw}</div>
</div>
{/block}